package com.wyh.lotterysystem.controller.request;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.io.Serializable;

@Data
public class RegisterRequest implements Serializable {

    @NotBlank(message = "用户名不能为空")
    private String name;

    @NotBlank(message = "邮箱不能为空")
    private String mail;

    @NotBlank(message = "手机号不能为空")
    private String phoneNumber;

    //普通用户不需要密码
    private String password;

    @NotBlank(message = "身份信息不能为空")
    private String identity;
}
